package com.woniu.woniuproject.service;

import com.woniu.woniuproject.entity.Account;
import com.woniu.woniuproject.mapper.AccountMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 功能描述:<br>
 * 〈〉
 *
 * @author EDZ
 * @create 2020/11/21
 * @since 1.0.0
 */
@Service
public class AccountService {
    @Autowired
    AccountMapper accountMapper;
    public Account qreryAccountById(Integer id) {
        return accountMapper.SelectAccountById(id);
    }
    public Account queryByUserId(Integer id) {
        return accountMapper.selectByUserKey(id);
    }

    public int addmore(Integer id,Double anInt) {
        return accountMapper.addmore(id,anInt);
    }
}
